@design-width: 750;

* {
  padding: 0;
  margin: 0;
}

.w {
  width: 693/40rem;
  margin: 0 auto;
}

a {
  text-decoration: none;
}

html {
  font-size: 100vw/@design-width*40;
  background-color: #eff0f4;
}

.top-bar:extend(.w) {
  display: flex;
  height: 175/40rem;
  line-height: $height;
  justify-content: space-between;
  align-items: center;

  .menu-btn a i{
    color: #999999;
    font-size: 20/rem;
    font-size: 40/40rem;
  }

  .logo a {
    color: #24253d;
    font-size: 50/40rem;
  }

  .search-btn a i{
    color: #656565;
    font-size: 40/40rem;
  }

}

.banner {
  img {
    width: 100%;
    vertical-align: bottom;
  }
}

.menu:extend(.w) {
  height: 244/40rem;
  margin-top: 40/40rem;
  display: flex;
  flex-flow: row wrap;
  justify-content: space-between;
  align-content: space-between;

  a {
    width: 327/40rem;
    height: 104/40rem;
    line-height: $height;
    color: #fff;
    border-radius: 10/40rem;

    &:nth-child(1) {
      background-color: #f7735a;
    }

    &:nth-child(2) {
      background-color: #d17bfd;
    }

    &:nth-child(3) {
      background-color: #ff3971;
    }

    &:nth-child(4) {
      background-color: #1d99ff;
    }

    i {
      margin: 0 20/40rem 0 38/40rem;
    }
  }
}

.course-list:extend(.w) {
  margin-top: 47/40rem;
  width: 720/40rem;

  .title {
    // height: 40/40rem;
    font-size: 30/40rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-left: 3/40rem solid #3a84ff;

    h2 {
      color: #24253d;
      font-size: 30/40rem;
      margin-left: 17/40rem;
    }

    a {
      color: #656565;
    }
  }

  .item-list {
    margin-top: 40/40rem;
    display: flex;
    overflow: auto;
    
    .item {
      box-sizing: border-box;
      border-radius: 5px;
      width: 327/40rem;
      height: 323/40rem;
      padding: 0 22/40rem;
      background-color: #fff;
      box-shadow: 0 0 10px rgba(0,0,0,.1);
      margin-right: 24/40rem;
      display: flex;
      flex-flow: column wrap;
      justify-content: space-evenly;

      .cover {
        width: 285/40rem;

        img {
          vertical-align: bottom;
          width: 100%;
        }
      }

      .course-title {
        // margin-top: 24/40rem;
        font-size: 30/40rem;
      }

      .user-info {
        display: flex;
        align-items: center;
        // margin-top: 24/40rem;

        .avatar {
          width: 42/40rem;
          height: 42/40rem;
          margin-right: 14/40rem;
          img {
            // vertical-align: bottom;
            width: 100%;
          }
        }

        .nickname {
          font-size: 25/40rem;
          color: #969393;
        }
      }
    }
  }
}